package top.jiangqiang.qianyi.common.log.config;

import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import top.jiangqiang.qianyi.common.log.service.DefaultLogService;
import top.jiangqiang.qianyi.common.log.service.LogPersistenceService;

@Configuration
public class LogAutoConfiguration {
    @ConditionalOnMissingBean(LogPersistenceService.class)
    @Bean
    LogPersistenceService logService() {
        return new DefaultLogService();
    }

}
